<?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\Resource;

class SchoolResource extends Resource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'id' => (int)$this->id,
            'school_name' => (string)$this->school_name,
            'school_code' => (string)$this->school_code,
            'police_station_id' => (int)$this->police_station_id,
            'upper_limit' => (int)$this->upper_limit
        ];
    }
}
